function scanTransf(Barcode) {
    try {
        if (Barcode.indexOf('GJH|') > -1) {
            var recode = Barcode;
            Barcode = Barcode.replace('GJH|', '').trim();
            var BarcodeArray = Barcode.split('|');
            return {
                type: '生产单号',
                recode: recode,
                data: {
                    str1: BarcodeArray[0],
                    str2: BarcodeArray[1]
                }
            }
        } else if (Barcode.indexOf('RY|') > -1) {
            var recode = Barcode;
            Barcode = Barcode.replace('RY|', '').trim();
            var BarcodeArray = Barcode.split('|');
            return {
                type: '人员',
                recode: recode,
                data: {
                    str1: BarcodeArray[0]
                }
            }
        } else if (Barcode.indexOf('KW|') > -1) {
            var recode = Barcode;
            Barcode = Barcode.replace('KW|', '').trim();
            var BarcodeArray = Barcode.split('|');
            return {
                type: '库位',
                recode: recode,
                data: {
                    str1: BarcodeArray[0]
                }
            }
        } else if (Barcode.indexOf('WL|') > -1) {
            var recode = Barcode;
            Barcode = Barcode.replace('WL|', '').trim();
            var BarcodeArray = Barcode.split('|');
            return {
                type: '物料',
                recode: recode,
                data: {
                    str1: BarcodeArray[0]
                }
            }
        }else{
            return '';
        }
    } catch (e) {
        return '';
    }





}